import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'normalize.css/normalize.css'
import '@/assets/css/main.scss'
import ElementPlus from 'element-plus'
import locale from "element-plus/lib/locale/lang/zh-cn";//简体中文
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/display.css'
import '@/assets/fonts/fonts.css'
const app = createApp(App)
app.use(ElementPlus, { 
  locale,
})
// 获取localStorage的用户信息
let getUserInfo = () => {
  return localStorage.getItem("userInfo") ? JSON.parse(localStorage.getItem("userInfo") as string) : false
};
app.config.globalProperties.$getUserInfo = getUserInfo;
app.use(store).use(router).mount('#app')
